@use "@/assets/styles/mixin";

.pd20{
  padding:20px;
  box-sizing: border-box;
}

.distribution-container{
 @include mixin.flex-column;
  height: 100%;
  background-color: #fff;
  box-shadow: 4px 5px 16px 0 rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  .header{
    @include mixin.flex-between;
    @extend .pd20;
    border-bottom: 1px solid #E6EAEE;
    :deep(.el-button){
      width: 92px;
      height: 36px;
      background-color: #F2F3F5;
      font-weight: 400;
      font-size: 14px;
      color: #1D2129;
      line-height: 22px;
    }
  }
  .content{
    @include mixin.flex;
    flex:1;
    overflow-y: auto;
    &-roles{
      @include mixin.flex-column;
      @extend .pd20;
      flex-shrink: 0;
      position: relative;
      width: 350px;
      height: 100%;
      overflow-y: auto;
      background-color: #F5F7FA;
      border-right: 1px solid #E2E8F0;
      border-bottom-left-radius: 10px;
      &__items{
        flex: 1;
        overflow-y: auto;
      }
      &__button{
        width: 100%;
        height: 36px;
        margin-top: 20px;
        border-radius: 4px;
      }
      &-item{
        cursor: pointer;
        &+.content-roles-item{
          margin-top: 24px;
        }
        &-title{
          @include mixin.flex-between;
          align-items: center;
          margin-bottom: 10px;
          span{
            font-weight: 400;
            font-size: 16px;
            color: #3D3D3D;
            line-height: 24px;
          }
        }
        &-user{
          @include mixin.flex;
          position: relative;
          align-items: start;
          padding: 11px 19px;
          box-sizing: border-box;
          background-color: #fff;
          box-shadow: 0 0 10px 0 rgba(134,144,156,0.1);
          border-radius: 10px;
          .user-avatar{
            flex-shrink: 0;
          }
          .user-info{
            margin-left: 15px;
            &-name{
              font-size: 14px;
              color: #191919;
              line-height: 32px;
            }
            &-role{
              font-size: 12px;
              color: #86909C;
              line-height: 24px;
            }
          }
          .user-del{
            position: absolute;
            right: 5px;
            top:5px;
            :deep(.el-icon){
              font-size: 18px;
            }
          }
          &:hover{
            border:1px solid #007DFF;
          }
        }
        .active-user{
          border:1px solid #007DFF;
        }
        &-disable{
          padding: 11px 19px;
          box-sizing: border-box;
          text-align: center;
          background-color: #ECECEC;
          box-shadow: 0 0 10px 0 rgba(134,144,156,0.1);
          border-radius: 10px;
          font-size: 16px;
          color: #86909C;
          line-height: 32px;
        }
        &-add{
          padding: 11px 19px;
          box-sizing: border-box;
          text-align: center;
          background-color: #fff;
          box-shadow: 0 0 10px 0 rgba(134,144,156,0.1);
          border-radius: 10px;
          font-size: 16px;
          color: #86909C;
          line-height: 32px;
        }
      }
    }
    &-tasks{
      @include mixin.flex-column;
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      box-sizing: border-box;
      &-title{
        margin-bottom: 20px;
        font-size: 16px;
        color: #86909C;
        line-height: 24px;
      }
      &-list{
        flex: 1;
        overflow-y: auto;
        position: relative;
        &-item{
          padding: 0 20px;
          box-sizing: border-box;
          border-radius: 4px;
          background-color: #F5F7FA;
          &+.content-tasks-list-item{
            margin-top: 20px;
          }
        }
        .list-item-options{
          @include mixin.flex-align;
          padding: 14px 0;
          box-sizing: border-box;
          border-bottom: 1px solid #E2E8F0;
          &-icon{
            width: 4px;
            height: 16px;
            background-color: #007DFF;
            border-radius: 2px;
          }
          &-type{
            font-size: 16px;
            color: #FF3333;
            line-height: 24px;
          }
          &-label{
            margin-left: 10px;
            font-size: 16px;
            color: #3D3D3D;
            line-height: 24px;
          }
          :deep(.el-button){
            margin-left: auto;
          }
        }
        .list-item-info{
          @include mixin.flex-align;
          padding: 20px 0;
          box-sizing: border-box;
          &-item{
            font-size: 14px;
            color: #3D3D3D;
            line-height: 22px;
            &+.list-item-info-item{
              margin-left: 170px;
            }
            span{
              color: #86909C;
            }
          }
        }
      }
    }
  }
}

:deep(.el-empty){
  @include mixin.position-center;
  .el-empty__image{
    width: 116px;
    height: 116px;
    svg{
      width: 100%;
      height: 100%;
    }
  }
}

:deep(.el-dialog__body){
  margin: 48px 0;
}
.dialog-footer{
  text-align: center;
}

.operate-remark{
  height: 50vh;
  overflow: auto;
}
